package com.sgb.kjwl.view.event;


import com.contrarywind.interfaces.IPickerViewData;

import java.io.Serializable;
import java.util.List;

/**
 * Created by harisucici on 2020/6/3
 * Class description:
 */
public class RoleListEntity implements Serializable, IPickerViewData {

    /**
     * groupName :
     * children : [{"groupName":"","children":[],"comNo":"202003277697334","userNo":"201910315363594","name":"部长","parentIds":[],"id":"5e7d6eb4b1876d3c59416aeb","sort":1,"state":1,"type":2,"parentId":"5e7d6811b1876d3c59416aea"},{"groupName":"","children":[],"comNo":"202003277697334","userNo":"201910315363594","name":"组长","parentIds":[],"id":"5e7d6ebcb1876d3c59416aec","sort":1,"state":1,"type":2,"parentId":"5e7d6811b1876d3c59416aea"},{"groupName":"","children":[],"comNo":"202003277697334","userNo":"201910315363594","name":"普员","parentIds":[],"id":"5e7d6ec9b1876d3c59416aed","sort":1,"state":1,"type":2,"parentId":"5e7d6811b1876d3c59416aea"},{"groupName":"","children":[],"comNo":"202003277697334","userNo":"201910315363594","name":"经理","parentIds":[],"id":"5e8c2330b1876d19d6851baa","sort":1,"state":1,"type":2,"parentId":"5e7d6811b1876d3c59416aea"},{"groupName":"","children":[],"comNo":"202003277697334","userNo":"201910315363594","name":"董事长","parentIds":[],"id":"5e8c2361b1876d19d6851bab","sort":1,"state":1,"type":2,"parentId":"5e7d6811b1876d3c59416aea"},{"groupName":"","children":[],"comNo":"202003277697334","userNo":"201910315363594","name":"董事长助理","parentIds":[],"id":"5e8c2389b1876d19d6851bac","sort":1,"state":1,"type":2,"parentId":"5e7d6811b1876d3c59416aea"}]
     * comNo : 202003277697334
     * userNo : 201910315363594
     * name : 角色组1
     * parentIds : []
     * id : 5e7d6811b1876d3c59416aea
     * sort : 0
     * state : 1
     * type : 1
     * parentId :
     */

    private String groupName;
    private String comNo;
    private String userNo;
    private String name;
    private String id;
    private int sort;
    private int state;
    private int type;
    private String parentId;
    private List<RoleListEntity> children;
    private List<String> parentIds;
    private boolean isSelected;     //是否选中

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getComNo() {
        return comNo;
    }

    public void setComNo(String comNo) {
        this.comNo = comNo;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public List<RoleListEntity> getChildren() {
        return children;
    }

    public void setChildren(List<RoleListEntity> children) {
        this.children = children;
    }

    public List<?> getParentIds() {
        return parentIds;
    }

    public void setParentIds(List<String> parentIds) {
        this.parentIds = parentIds;
    }

    @Override
    public String getPickerViewText() {
        return getName();
    }
}

